package com.kdx.cloud.common.dao;

import java.util.List;

import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import com.kdx.cloud.common.domain.Dictionary;

public interface DictionaryMapper {

	@Select({ "SELECT dict_id,dict_name FROM #{dictType,jdbcType=VARCHAR}" })
	@Results(value = { @Result(property = "id", column = "dict_id"), @Result(property = "name", column = "dict_name") })
	List<Dictionary> getDictionaryByType(String dictType);

}
